#define _CRT_SECURE_NO_WARNINGS 1
/*
http://ybt.ssoier.cn:8088/problem_show.php?pid=1195
*/

#include<bits/stdc++.h>
using namespace std;

int main() {
	int n, k;
	cin >> n >> k;
	vector<int>a(n + 1, 0);
	vector<vector<bool> >dp(n+1, vector<bool>(k+1,0));
	for (int i = 1; i <= n; i++)
		cin >> a[i];
	dp[0][0] = 1;
	for (int i = 1; i <= n; i++) {
		int& x = a[i];
		for (int j = k; j >= 0; j--) {
			dp[i][j] = dp[i - 1][(j - x % k + k) % k] || dp[i - 1][(x % k + j) % k];
		}
	}
	cout << (dp[n][k] ? "YES" : "NO");
	return 0;
}
